//
//  Conference.h
//  SHPE Conference Companion
//
//  Created by Richard Kirk on 3/25/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
/*
API Example for Conference class : 
 
 
<?xml version="1.0" encoding="UTF-8"?>
<conference xmlns="http://openshpe.shpe.org/conference" xmlns:xlink="http://www.w3.org/1999/xlink" id="100" name="ETLC 2011" xlink:logo="http://openshpe.staging.shpe.org/conference/v1/conference/100/logo/">
     <start-date>03/17/2011 06:00:00</start-date>
     <end-date>03/20/2011 02:00:00</end-date>
     <description>Eastern Technical and Leadership Conference - 2011</description>
     <email>info@shpe-etlc.org</email>
     <website>http://www.shpe-etlc.org</website>
     <twitter>shpeetlc</twitter>
     <location>
          <address>1 UCF Drive</address>
          <city>Orlando</city>
          <province>FL</province>
          <country>US</country>
          <postalCode>32816</postalCode>
          <coordinate lat="28.60256" lon="-81.20016"/>
     </location>
</conference>
 
 */
    // Test Cases
    // http://ww2.cs.fsu.edu/~sposaro/test/index.html



#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@class Location, SponsorshipLevel, Sponsor, Venue, Speaker, Session, SessionType, Track;

@interface Conference : NSManagedObject<NSXMLParserDelegate> {
@private
}
@property (nonatomic, retain) NSNumber * id;
@property (nonatomic, retain) NSString * name;
@property (nonatomic, retain) NSDate * startDate;
@property (nonatomic, retain) NSDate * endDate;
@property (nonatomic, retain) NSString * desc;
@property (nonatomic, retain) NSString * twitter;
@property (nonatomic, retain) NSString * website;
@property (nonatomic, retain) NSString * email;
@property (nonatomic, retain) NSString * thumbnailURL;
@property (nonatomic, retain) NSData * thumbnailData;
@property (nonatomic, retain) NSSet* speakers;
@property (nonatomic, retain) NSSet* venues;
@property (nonatomic, retain) Location * location;
@property (nonatomic, retain) NSSet* tracks;
@property (nonatomic, retain) NSSet* sessions;
@property (nonatomic, retain) NSSet* sessionTypes;
@property (nonatomic, retain) NSSet* sponsors;
@property (nonatomic, retain) NSSet* sponsorshipLevels;

@property (nonatomic, retain) NSXMLParser *xmlParser;
@property (nonatomic, retain) NSMutableString *xmlStringBuilder;
@property (nonatomic, retain) NSDateFormatter *dateFormatter;


-(id)initWithParser:(NSXMLParser *)parser;
-(id)initWithConferenceId:(int) conferenceId;
-(void)getAllTracks;



@end
